package com.whz.crypt.annotation;

import org.springframework.context.annotation.Import;
import com.whz.crypt.config.HttpRsaTransportConfiguration;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 开启spring web 加密通信,基于RSA
 *
 * @author whz
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Import({ HttpRsaTransportConfiguration.class })
public @interface EnableCryptWeb {
}